package com.jt.demo23.aop;

import com.jt.demo23.Service.PersonServise;
import com.jt.demo23.Spring.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextDemo {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        PersonServise bean = a.getBean(PersonServise.class);
        String name = bean.findName();
        System.out.println(name);
    }
}
